-- GENERATED SPELL FOR [Twilight Shadowblade] --


function spell0_33824(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(63754,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33824', 668, 1)
end

function spell1_33824(pUnit, Event) --@Fan of Knives,Self--
pUnit:FullCastSpellOnTarget(63753,pUnit)
pUnit:RegisterEvent('Sorts_33824', 565, 1)
end

function Sorts_33824(pUnit, Event)
local choix_sorts_33824 = math.random(0, 1)
if choix_sorts_33824 == 0 then
pUnit:RegisterEvent('spell0_33824', 1, 1)
end
if choix_sorts_33824 == 1 then
pUnit:RegisterEvent('spell1_33824', 1, 1)
end
end

function mob33824_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33824', math.random(1500, 3000), 1)
end

function mob33824_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33824_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33824_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33824, 1, 'mob33824_Action')
RegisterUnitEvent(33824, 2, 'mob33824_Leave')
RegisterUnitEvent(33824, 3, 'mob33824_Kill')
RegisterUnitEvent(33824, 4, 'mob33824_Die')
